<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<link href="assets/css/bootstrap-select.css" rel="stylesheet" />
<link href="assets/css/front/listCommonStyle.css" rel="stylesheet"/>
<script src="assets/js/select2/select2.js"></script>
<div class="row margin-left-10">
	<!-- 映射列表 -->
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" id="leftTree">
		<div class="widget flat searchCriteria">
			<div class="widget-header bordered-sky theme-bordered nopadding">
				<div class="widget-buttons">
					<!-- 业务按钮 begin -->
					<label class="businessBtns">
						<button class="btn btn-blue shiny download"><i class="fa fa-download"></i>导入</button>
						<button class="btn btn-blue shiny download"><i class="fa fa-download"></i>导出</button>
						<button class="btn btn-warning shiny search "><i class="fa fa-search"></i>搜索</button>
					</label>
				</div>
			</div>
		</div>
		<div class="search_Bar" style="vertical-align: middle">
			<form id="${searchFormId}" action="${actionUrl}" method="POST">
				<label class="">
					<label style="margin-right: 10px">
						<label>会员姓名：</label>
						<label>
							<input type="text" name="studentName" value="${search_map.studentName[0]}">
						</label>
					</label>
					<label style="margin-right: 10px">
						<label>付定金时间：</label>
						<label>
							<input style="height: 28px!important;" id="d4311" type="text" name="depositCreateTime_begin" class="beginValue Wdate" value="${search_map.depositCreateTime_begin[0]}"
								   onFocus="WdatePicker({doubleCalendar:true,maxDate:'#F{$dp.$D(\'d4312\')}',dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="起始时间" >
						</label>
						<label>
							——
						</label>
						<label>
							<input style="height: 28px!important;border-top: 1px solid #d5d5d5!important;" id="d4312"  type="text" name="depositCreateTime_end" class="endValue Wdate"  value="${search_map.depositCreateTime_begin[0]}"
								   onFocus="WdatePicker({doubleCalendar:true,minDate:'#F{$dp.$D(\'d4311\')}',dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="结束时间" >
						</label>
					</label>
				</label>
			</form>
		</div>
		<div class="widget flat radius-bordered">
			<div class="widget-body no-padding margin-top-30">
				<div class="topPagingBar hidden">
					${pagingBar}
				</div>
				<div class="table-scrollable">
					<!-- 数据表列信息列表 -->
					<table class="table table-bordered dataTable">
						<thead>
						<tr>
							<th title="选择" class="checkboxColumnTh  " >
								<div class="checkbox">
									<label>
										<input type="checkbox" class="chkAll">
										<span class="text"></span>
									</label>
								</div>
							</th>
							<th title="属性名">序号</th>
							<th >操作项</th>
							<th title="会员姓名">会员姓名</th>
							<th title="订金金额">订金金额</th>
							<th title="联系电话">联系电话</th>
							<th title="操作者">操作人</th>
							<th title="操作时间">操作日期</th>

						</tr>
						</thead>
						<tbody>
						<#if page_bean.list?size==0>
							<tr>
								<td align="center">无数据</td>
							</tr>
						</#if>
						<#list page_bean.list as data>
							<tr>
								<td class="checkboxColumnTd">
									<div class="checkbox">
										<label>
											<input type="checkbox" class="chk"  name="id" value="${data.id}">
											<span class="text"></span>
										</label>
									</div>
								</td>
								<td>${data_index+1+(page_bean.pageNo-1)*page_bean.pageSize}</td>
								<td align="center">
									<!--<a class="btn btn-default btn-xs icon-only green update" href="javascript:void(0);"  serializeNum="${serializeNum}" editUrl="${editUrl}" targetDataId="${data.id}"><i class="fa  fa-edit"></i></a>
									<a class="btn btn-default btn-xs icon-only red delete" href="javascript:void(0);"   serializeNum="${serializeNum}" deleteUrl="${deleteUrl}" targetDataId="${data.id}"><i class="fa fa-trash-o"></i></a>-->
									<a href="javascript:void(0);"  onclick="PayFullAmount(this)" cid=${data.id}>付全款</a>
								</td>
								<td>${(data.studentName???string(data.studentName?html,"未设置"))!'未设置'}</td>
								<td>${(data.depositAmount???string(data.depositAmount?html,"未设置"))!'未设置'}</td>
								<td>${(data.studentContactPhone???string(data.studentContactPhone?html,"未设置"))!'未设置'}</td>
								<td>${(data.realName???string(data.realName?html,"未设置"))!'未设置'}</td>
								<td>${(data.depositCreateTime???string(data.depositCreateTime?html,"未设置"))!'未设置'}</td>

							</tr>
						</#list>
						</tbody>
					</table>
				</div>
				${pagingBar}
			</div>
		</div>


	</div>
</div>
<script>
$(".selectpicker").select2();
/**
 * 付全款
 * @param that
 */
function PayFullAmount(that){
    var id = $(that).attr("cid");
    ajaxRequest("tssDepositController/fullInformation.do",{
        id:id
    },function(html){
        getTopWin().bootbox.dialog({
            message:html,
            title:'付全款',
            className:'myDialog'
        });
    },function(){
        ajaxError("加载页面失败!")
    },"get","html")

}
</script>